﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OOP.Proxy.DesignPattern.Attr
{
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
    public class LogAttribute : Attribute
    {
        public string Type { get; set; } = "INFO";
        public bool LogResult { get; set; } = false;

        public LogAttribute(string type, bool logResult)
        {
            Type = type;
            LogResult = logResult;
        }

        public LogAttribute(string type)
        {
            Type = type;
        }

        public LogAttribute()
        {
        }
    }
}
